/* IMPORTS */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/Inter-Bold.woff2?v=3.11') format('woff2'),
    url('./fonts/Inter-Bold.woff?v=3.11') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/Inter-Regular.woff2?v=3.11') format('woff2'),
    url('./fonts/Inter-Regular.woff?v=3.11') format('woff');
}

/* VARIABLES */

:root {
  --color-black: #161616;
  --color-white: #ffffff;
  --color-red: #fc466b;

  --font-size: 1.8rem;
  --font-primary: 'Inter';
}

:root > .dark {
  --color-black: #ffffff;
  --color-white: #161616;
  --color-red: #fc466b;

  --font-size: 1.8rem;
  --font-primary: 'Inter';
}

/* RESET */

* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

ul,
ol {
  list-style: none;
}

a:link,
a:visited {
  text-decoration: none;
  color: var(--color-black);
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

::selection {
  background-color: var(--color-red);
  color: var(--color-white);
}

body {
  font-size: 1.8rem;
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--color-white);
}

/* CLASSES */

.wrapper {
  display: grid;
  grid-template-rows: 1fr max-content;
}

.home {
  animation: 2s scaleUp cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
  transform-origin: center;
  opacity: 0;
}

.container {
  padding: 5rem 15rem 2rem 15rem;
  display: grid;
  grid-template-rows: max-content 1fr;
}

.header {
  width: 40rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: end;
  margin-left: auto;
}

.logo {
  margin-right: auto;
}

.logo__img {
  height: 6rem;
  display: block;
  transition: transform 5s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 0.1rem solid transparent;
}

.logo__link:hover > .logo__img {
  transform: rotate(5turn);
}

.navbar__link {
  font-weight: 700;
  font-size: 2.4rem;
}

.main-content {
  display: flex;
  align-self: center;
  margin-top: 2rem;
}

.hero {
  display: flex;
  width: 100%;
  position: relative;
}

.hero__text {
  position: absolute;
  left: 4rem;
  top: 10rem;
  white-space: nowrap;
  z-index: 2;
}

.hero__undertitle {
  font-size: 2.4vw;
  font-weight: 400;
  opacity: 0.6;
}

.hero__title {
  font-size: 8.2vw;
  line-height: 1;
  margin-bottom: 3rem;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 5rem;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 2.4rem;
  background: linear-gradient(-134deg, #fc466b 0%, #3f5efb 100%);
  border-radius: 30rem;
  color: var(--color-white) !important;
  transition: all 0.2s;
}

.btn-cta:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1rem 2rem rgba(1, 1, 1, 0.1);
}

.hero__img {
  height: 50rem;
  width: 40rem;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(-134deg, #fc466b 0%, #3f5efb 100%),
    url('../img/hero-image.png');
  background-blend-mode: color;
  opacity: 0.8;
  margin-left: auto;
}

.dark .main-content {
  align-self: flex-start;
}

.info__text {
  margin-bottom: 2rem;
}

.info__heading {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.info__heading-2 {
  font-size: 2rem;
  font-weight: 400;
}

.info__paragraph,
.info__item {
  opacity: 0.8;
  hyphens: auto;
}

.info__list {
  list-style: circle;
  margin-left: 3rem;
}

.footer {
  align-self: end;
  width: 100%;
  min-height: 10vh;
  clip-path: polygon(0 60%, 100% 10%, 100% 100%, 0% 100%);
  background-color: var(--color-black);
}

.highlight {
  text-decoration: underline !important;
}

.highlight:hover {
  opacity: 0.8;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 62.5em) {
  html {
    font-size: 50%;
    overflow-x: hidden;
  }

  .container {
    padding: 5rem 5rem 2rem 5rem;
  }

  .hero__undertitle {
    font-size: 2.4rem;
  }

  .hero__title {
    margin-bottom: 2rem;
    font-size: 6rem;
  }
  .footer {
    display: none;
  }
}

@media only screen and (max-width: 31.25em) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__text {
    display: block;
    position: initial;
    margin-bottom: 4rem;
    left: 0;
    top: 0;
  }

  .hero__img {
    margin: 0;
  }
}

@media only screen and (max-width: 37.5em) {
  .header {
    margin: 0;
    width: 100%;
  }

  html {
    font-size: 40%;
  }
}

@media only screen and (min-width: 112.5em) {
  .hero__title {
    font-size: 10vw;
  }

  .btn-cta {
    font-size: 3.2rem;
  }

  .hero__img {
    height: 55rem;
    width: 45rem;
  }
}

/* ANIMATIONS */

@keyframes slideBtm {
  0% {
    transform: translateY(-50%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
